import React, { Component } from 'react'
import bus from '@/utils/bus'
export default class TT extends Component {
    componentDidMount() {
        bus.addListener('make', this.getMsg)
    }
    componentWillUnmount() {
        bus.removeListener('make', this.getMsg)
    }
    getMsg = (arg) => {
        console.log('TT方:', arg);
    }
    render() {
        return (
            <div style={{ width: '100px', height: '150px', background: 'pink' }}>TT</div>
        )
    }
}
